<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"/>
<title>大众留言-${web.title}</title>
<link href="/template/default/css/main.css" type="text/css" rel="stylesheet" media="screen and (min-width: 800px)" >
<link href="/template/default/css/main_m.css" type="text/css" rel="stylesheet" media="screen and (max-width: 800px)" >
<link href="/template/default/css/leavemessage.css" type="text/css" rel="stylesheet">
<link href="/resource/css/grayscale.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/grayscale.js"></script>
<script type="text/javascript" src="/template/default/js/main.js"></script>
<script type="text/javascript" src="/template/default/js/leavemessage.js"></script>
</head>
<body>
	<div class="panel">
		<#include "top.html">
		<div class="middle">
			<div class="itemhead">大众留言</div>
            <div class="leavemessagepanel">
            	<table width="100%">
            		<#list leavemessages as lmsg>
            			<tr>
                        	<td height="30"><b>${lmsg.username}：</b></td>
                        	<td align="right" valign="top">${lmsg.subtime?string('yyyy-MM-dd')}</td>
                        </tr>
                        <tr>
                        	<td height="25" colspan="2"><#if lmsg.contents??>${lmsg.contents?replace("\n","<br />")?html}</#if></td>
                        </tr>
                        <tr>
                        	<td colspan="2"><hr /></td>
                        </tr>
            		</#list>
                </table>
                <#if leavemessages?size gte 100><center>数据太过古老，已不予显示！</center></#if>
            </div>
            <hr />
            <form method="post" action="/leavemessage/submit" onsubmit="return checkform()">
                <table class="leavemessavetable">
                	<tr>
                    	<td align="right">您的称呼：</td>
                        <td><input type="text" name="username" id="username" value="游客" /></td>
                    </tr>
                	<tr>
                    	<td align="right">留言内容：</td>
                        <td><textarea name="contents" id="contents" rows="3" cols="50"></textarea></td>
                    </tr>
                    <tr>
                        <td align="right">验证码：</td>
                        <td><input type="text" name="vcode" id="vcode" maxlength="4"  style="width:83px;" /> <img id="vcodeimg" class="vcodeimg" src="/validatecode?width=68&height=27" onclick="changevocde()" /> <span style="color:red">*</span></td>
                    </tr>
                	<tr>
                    	<td colspan="2" align="center">
                        	<input type="submit" value="提交" style="padding:3px 20px;"/>
                        </td>
                    </tr>
                </table>
            </form>
            <br /><br /><br />
		</div>
    	<#include "bottom.html">
	</div>
</body>
</html>
